Barium carbonate is a chemical compound. Its chemical formula is BaCO3. It contains barium and carbonate ions.